//
//  AdvertCellView.h
//  CCBShop
//
//  Created by lijianhua on 14-11-27.
//  Copyright (c) 2014年 CCB. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol AdvertCellClickDelegate <NSObject>
- (void)advertCellClickWithName:(NSString *)name url:(NSString *)url;
@end

@interface AdvertCellView : UIView
{
    NSDictionary *advertDictionary;
    
    NSString *field;
    NSString *imgUrl;
    NSString *name;
    NSString *url;
}

@property (nonatomic, strong) id<AdvertCellClickDelegate> delegate;
@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, strong) UIButton *imageButton;

- (id)initWithFrame:(CGRect)frame advertDictionary:(NSDictionary *)advertDic;
// test
- (id)initWithFrameTest:(CGRect)frame advertString:(NSString *)adverStr;


//- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
//- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
//- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;

@end
